package com.flin.icesilkworm.examination.bas.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.flin.icesilkworm.examination.bas.constant.ITheBasicExamineeConstant;
import com.flin.icesilkworm.examination.bas.model.TheBasicExaminee;
import com.flin.icesilkworm.examination.bas.po.TheBasicExamineeDo;
import com.flin.icesilkworm.examination.bas.service.ITheBasicExamineeService;
import com.flin.icesilkworm.examination.extfunc.IExtFunction;
import com.flin.icesilkworm.examination.gen.bas.service.GeneratedTheBasicExamineeService;
import com.flin.icesilkworm.framework.utils.Md5Utils;
@Service("theBasicExamineeService")
@Transactional
public class TheBasicExamineeServiceImpl extends GeneratedTheBasicExamineeService implements IExtFunction,ITheBasicExamineeService,ITheBasicExamineeConstant{

	@Transactional
	public Long saveTheBasicExaminee(TheBasicExaminee t) {
		md5Password(t);
		return super.saveTheBasicExaminee(t);
	
	}
	
	public void md5Password(TheBasicExaminee t){
		md5Password(t.getPassword(), t::setPassword);
	}
	
	@Transactional
	public boolean updTheBasicExaminee(TheBasicExaminee t) {
		md5Password(t);
		return super.updTheBasicExaminee(t);
	
	}

}